package com.cya.forumproject.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    @ApiModelProperty("访问次数")
    private Integer visitCount;

    @ApiModelProperty("回复数")
    private Integer replyCount;

    @ApiModelProperty("点赞数")
    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;
    @ApiModelProperty("是否为作者")//为null 不参与json序列化
    private Boolean Own;

    //关联对象
    private User user;

    private Board board;


}